[%if count($array) > 0%]
[%forlist from=$array key=list%]
<div class="infolist" onselectstart="return false;" title="[%$array[list].HotelOrderID%] - [%$array[list].OrderState%]" [%if @this->powercheck(135,160)==true %]ondblClick="javascript:parent.onbotton('[%$ST.ordermain_edit_log%][%$array[list].HotelOrderID%]','index.php?archive=ordermain&action=orderedit&id=[%$array[list].ID%]&type=edit&freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),true,'orderread[%$array[list].ID%]',self.frameElement.getAttribute('name'));"[%/if%]>
	<table border="0" style="border-collapse:collapse" width="100%" bordercolor="#FFFFFF">
		<tr>
			<td width="4%"><input type="checkbox" name="orderselectinfoid" value="[%$array[list].ID%]"></td>
			<td width="7%">[%if $array[list].HotelOrderID!=""%][%$array[list].HotelOrderID%][%else%]-[%/if%]</td>
            [%if $array[list].neworder == 1%]
            <td width="6%"><span class="colorghow">[%$array[list].OrderState%]</span></td>
            [%else%]
            <td width="6%"><span class="colorgreen">[%$array[list].OrderState%]</span></td>
            [%/if%]
            <td width="11%">[%$array[list].OrderDatetime%]</td>
            <td width="6%">[%$array[list].OrderType%]</td>
            <td width="17%" id="left" class="padding-left3">[%$array[list].HotelName%]</td>
            <td width="7%">[%$array[list].RoomTypeName%]</td>
            <td width="3%">[%$array[list].RoomAmount%]</td>
            <td width="9%">[%$array[list].CheckInDate%]</td>
            <td width="8%">[%$array[list].CheckOutDate%]</td>
            <td width="7%"><span class="colororder">[%$array[list].Guest_Name%]</span></td>
            <td width="8%"><span class="colororder">[%$array[list].Guest_Mobile%]</span></td>
			<td width="7%" id="infotype">
				<table border="0" style="border-collapse:collapse" bordercolor="#FFFFFF">
					<tr>
						<td><a class="setedit" onclick="javascript:parent.onbotton('[%$ST.ordermain_edit_log%][%$array[list].HotelOrderID%]','index.php?archive=ordermain&action=orderedit&id=[%$array[list].ID%]&type=edit&freshid='+Math.random()+'&iframename='+self.frameElement.getAttribute('name'),true,'orderread[%$array[list].ID%]',self.frameElement.getAttribute('name'));" id="orderread[%$array[list].ID%]" href="#body" title="[%$array[list].HotelOrderID%][%$ST.setedit_botton%]" hidefocus="true">[%$ST.setedit_botton%]</a></td>
						<td class="padding-left3">
                        <a class="setedit" id="hotellog" href="javascript:parent.windowsdig('[%$ST.ordermain_text_hotellog%]','iframe:index.php?archive=management&action=list&listfunction=orderloglist&orderid=[%$array[list].ID%]&iframename='+self.frameElement.getAttribute('name'),'640px','500px','iframe',true);" title="[%$ST.ordermain_text_hotellog%]" hidefocus="true">[%$ST.ordermain_text_hotellog2%]</a>
                        
                        </td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
</div>
[%/forlist%]
[%else%]
<div class="infolist">
<table border="0" style="border-collapse:collapse" width="100%" bordercolor="#FFFFFF">
	<tr>
	    <td align="center">[%$ST.list_nothing_title%]</td>
	</tr>
</table>
</div>
[%/if%]